#!/bin/bash
get_deploy=`kubectl get deploy comp-wpc-wpay-api -n comp-wpaydp  |awk 'NR==2{print $1}'`
if [ "$get_deploy" == "comp-wpc-wpay-api" ]; then
	  kubectl delete deployment comp-wpc-wpay-api -n comp-wpaydp
	  kubectl apply -f deployment.yaml 
else
	  kubectl apply -f deployment.yaml
fi
